<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>剩余运算符</title>

    <script>
        let { b, c, ...rest } = { a: 10, b: 20, c: 30, d: 40 };
        console.log(b); // 20
        console.log(c); // 30
        console.log(rest); //{a: 10, d: 40}
    </script>
</head>
<body>
    
</body>
</html>